package com.tiger.pojo.excel;

import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.write.style.ColumnWidth;
import com.alibaba.excel.annotation.write.style.ContentRowHeight;
import com.alibaba.excel.annotation.write.style.HeadRowHeight;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * @author HuXuehao (StudiousTiger)
 * @desc 这个类的作用是
 * @date 2022/2/27
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@HeadRowHeight(30) //表头行高
@ContentRowHeight(20) //数据行高
public class UserGenderData implements Serializable {
    @ColumnWidth(25) // 行宽
    @ExcelProperty({"用户性别比例","性别"})
    private String userGender;

    @ColumnWidth(25) // 行宽
    @ExcelProperty({"用户性别比例","数量"})
    private int userCount;

    @ColumnWidth(50) // 行宽
    @ExcelProperty({"用户性别比例","统计时间"})
    private String excelCreateTime;

}
